package com.jar.exercise.集合和数据结构.链表;

import java.util.Arrays;
import java.util.LinkedList;

/**
 * @author ZhangShengHao
 * @className Node
 * @description TODO
 * @date 2020/2/24 20:57
 */
public class Node {
	public String data;
	public Node next;

	public Node(String data) {
		this.data = data;
	}


	@Override
	public String toString() {
		return "data" + "[" + this.data + "]";
	}

	public static void main(String[] args) {
		LinkedList<Integer> list = new LinkedList<>(Arrays.asList(0, 1, 2, 3, 4, 5));
		Integer integer = list.get(2);
		System.out.println(integer);
	}
}
